<template>
  <div>
    <el-select v-model="city" placeholder="请选择" clearable>
      <el-option v-for="(item,key) in cityOptions" :key="key" :label="item.label" :value="item.value" />
    </el-select>
  </div>
</template>

<script>
import {testT} from "@/api/test.js"
import infoList from "@/mixins/infoList"
export default {
    name:'test',
    mixins:[infoList],
    async created(){
      testT(),
      // 
      await this.getDict('city')

      console.log(this.cityOptions)
    },
    data(){
      return{
        city:0,
        cityOptions:[]
      }
    }
}
</script>
